package org.web.ssm.model;

import java.io.Serializable;

public class User implements Serializable {
    private String userid;    //唯一主键
    private String openid;
    private String username;   //用户名，用于登录
    private String nickname;   //用户昵称，用于显示给用户看
    private String password;
    private boolean loginstate;
    private String province;
    private String city;
    private double money;

    @Override
    public String toString() {
        return "User{" +
                "userid='" + userid + '\'' +
                ", openid='" + openid + '\'' +
                ", username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", loginstate=" + loginstate +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", money=" + money +
                '}';
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isLoginstate() {
        return loginstate;
    }

    public void setLoginstate(boolean loginstate) {
        this.loginstate = loginstate;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}